<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/integer_positive/form_field_integer_positive_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class Settings_Content_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_max_text_size = $form->get_field('max_text_size');
		$f_max_text_size_view = new Form_Field_Integer_Positive_View($form->get_name().'_'.$f_max_text_size->get_name(), $f_max_text_size);
		$this->add_field_view('max_text_size', $f_max_text_size_view);

		$f_max_total_size = $form->get_field('max_total_size');
		$f_max_total_size_view = new Form_Field_Integer_Positive_View($form->get_name().'_'.$f_max_total_size->get_name(), $f_max_total_size);
		$this->add_field_view('max_total_size', $f_max_total_size_view);
	}
}
